<template>
  <div class="head">
    <mt-header fixed
               :title="title"></mt-header>
    <span class="mui-icon mui-icon-back"
          @tap="back"></span>
    <span class="mui-icon mui-icon-search"
          @tap="search"></span>
  </div>
</template>
<script>
export default {
  data () {
    return {}
  },
  methods: {
    back () {
      this.$router.go(-1)
    },
    search () {
      this.$router.push('/search')
    }
  },
  props: ['title']
}
</script>
<style lang="less" scoped>
.head {
  z-index: 999999;
  position: relative;
  // margin-bottom: 60rem / @baseFontSize;
  .mint-header {
    background-color: @klcolor;
    font-size: 30rem / @baseFontSize;
    height: 60rem / @baseFontSize;
    line-height: 60rem / @baseFontSize;
  }
  span {
    position: fixed;
    top: 0;
    width: 60rem / @baseFontSize;
    height: 60rem / @baseFontSize;
    line-height: 60rem / @baseFontSize;
    font-size: 50rem / @baseFontSize;
    display: block;
    z-index: 99;
    color: white;
    &.mui-icon-back {
      left: 10rem / @baseFontSize;
    }
    &.mui-icon-search {
      right: 10rem / @baseFontSize;
    }
  }
}
</style>
